package se.webbzon.boltzmann.menu;

import java.awt.Font;
import java.awt.Image;

import se.webbzon.boltzmann.hud.DefaultCursorLayout;
import se.webbzon.boltzmann.resource.Resources;
import se.webbzon.oschi01.resourceset.ResourceSet;

public class GameMenuLayoutLow extends AbstractGameMenuLayout {
	
	// The image sets of the buttons
	private static final ResourceSet<Image> shortButton = Resources.getImageSet("label_button_160x32p");
	private static final ResourceSet<Image> longButton = Resources.getImageSet("label_button_320x32p");
		
	// The image sets of the slider
	private static final ResourceSet<Image> sliderBackground = Resources.getImageSet("slider_background_12p");
	private static final ResourceSet<Image> slider = Resources.getImageSet("slider_32p");

	// The image set of the labels
	private static final ResourceSet<Image> longLabel = Resources.getImageSet("label_320x32p");
	private static final ResourceSet<Image> shortLabel = Resources.getImageSet("label_160x32p");
	
	// The image set of the cursor
	private static final ResourceSet<Image> cursor = Resources.getImageSet("cursor_6p");

	// The font used for the buttons and the labels
	private static final Font font = Resources.getFont("liberation_mono_plain").deriveFont(12f);
	
	/*============================================================
	Constructors
	============================================================*/
	
	public GameMenuLayoutLow() {
		super(	new FlowPageLayout(640, 360, 32, 32, 32, 32), 
				new ButtonLayout(32, 18, font, shortButton, longButton),
				new SliderLayout(sliderBackground, slider),
				new LabelLayout(32, 18, font, shortLabel, longLabel),
				new DefaultCursorLayout(16,cursor));
	}

}
